package com.jiaai.cloud.active.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 活动
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-09-01
 */
@TableName("t_activity")
public class TActivity extends Model<TActivity> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String name;
    /**
     * 背景
     */
	private String img;
    /**
     * 平台1直播 2.直播间 3婚恋交友
     */
	private Integer platform;
    /**
     * 活动连接
     */
	private String url;
    /**
     * 0结束 1进行中
     */
	private Integer status;
    /**
     * 开始时间
     */
	@JSONField(format = "YYYY-MM-DD")
	private Date startTime;
    /**
     * 结束时间
     */
	@JSONField(format = "YYYY-MM-DD")
	private Date endTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getPlatform() {
		return platform;
	}

	public void setPlatform(Integer platform) {
		this.platform = platform;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
